﻿<SettingsFlyout
    x:Class="FantasyWereld.UserControls.PreferencesSettingsFlyout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FantasyWereld.UserControls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    IconSource="/Assets/SmallLogo.png"
    Title="Instellingen"
    Width="346"
    d:DesignWidth="346">

    <!-- This StackPanel acts as a root panel for vertical layout of the content sections -->
    <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >

        <!-- The StackPanel(s) below define individual content sections -->

        <!-- Content Section 1-->
        <StackPanel Style="{StaticResource SettingsFlyoutSectionStyle}">
            <TextBlock x:Uid="PrefNrItems"
                       Style="{StaticResource TitleTextBlockStyle}"
                       Text="Aantal recensies op overzichtspagina"
                       TextWrapping="Wrap" />
            <RadioButton x:Name="NrItems6"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0 5 0 0"
                         Content="6 recensies"
                         GroupName="NrItems"
                         Checked="HandleCheck" />
            <RadioButton x:Name="NrItems12"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0 5 0 0"
                         Content="12 recensies"
                         GroupName="NrItems"
                         Checked="HandleCheck" />

            <TextBlock x:Name="StartNews"
                       Style="{StaticResource TitleTextBlockStyle}"
                       Margin="0 20 0 0"
                       Text="Nieuws op startscherm"
                       TextWrapping="Wrap"
                       HorizontalAlignment="Left" />
            <ToggleSwitch x:Name="ShowNews"
                          OnContent="Tonen"
                          OffContent="Niet tonen"
                          Toggled="HandleCheck3" />
            
            <TextBlock x:Name="PopupNews"
                       Style="{StaticResource TitleTextBlockStyle}"
                       Margin="0 20 0 0"
                       Text="Notificatie bij nieuwe items"
                       TextWrapping="Wrap"
                       HorizontalAlignment="Left" />
            <ToggleSwitch x:Name="ShowPopupNews"
                          OnContent="Tonen"
                          OffContent="Niet tonen"
                          Toggled="HandleCheck4" />
        </StackPanel>

        <!-- Define more Content Sections below as necessary -->
        <StackPanel x:Name="PrefUpdateFrequency"
                    Style="{StaticResource SettingsFlyoutSectionStyle}"
                    Visibility="Collapsed">
            <TextBlock Style="{StaticResource TitleTextBlockStyle}"
                       Text="Controle op nieuws"
                       TextWrapping="Wrap" />
            <RadioButton x:Name="PrefFreq1"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0, 5, 0, 0"
                         Content="elke 2 uur"
                         GroupName="UpdateFrequency"
                         Checked="HandleCheck2" />
            <RadioButton x:Name="PrefFreq2"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0, 5, 0, 0"
                         Content="4 keer per dag"
                         GroupName="UpdateFrequency"
                         Checked="HandleCheck2" />
            <RadioButton x:Name="PrefFreq3"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0, 5, 0, 0"
                         Content="2 keer per dag"
                         GroupName="UpdateFrequency"
                         Checked="HandleCheck2" />
            <RadioButton x:Name="PrefFreq4"
                         FontFamily="Segoe UI"
                         FontWeight="SemiLight"
                         FontSize="16"
                         Margin="0, 5, 0, 0"
                         Content="1 keer per dag"
                         GroupName="UpdateFrequency"
                         Checked="HandleCheck2" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Bijwerken Recensieoverzicht"
                    Click="ClickUpdateReviewDatabase" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Bijwerken Boekenoverzicht"
                    Click="ClickUpdateBookDatabase" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Bijwerken Auteursoverzicht"
                    Click="ClickUpdateAuthorDatabase" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Bijwerken Trefwoorden"
                    Click="ClickUpdateKeywords" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Opschonen Database"
                    Click="ClickCleanupReviewDatabase" />

            <Button Margin="0 20 0 0"
                    Width="230"
                    Content="Repareer Recensieoverzicht"
                    Click="ClickRepairReviewDatabase" />
        </StackPanel>

        <StackPanel x:Name="ProgressIndicator"
                    Grid.Row="1"
                    HorizontalAlignment="Center"
                    Visibility="Collapsed"
                    Margin="0 20 0 0">
            <ProgressRing Foreground="Black"
                          Margin="0"
                          HorizontalAlignment="Center"
                          IsActive="True"
                          MaxHeight="50"
                          MinHeight="50"
                          MaxWidth="50"
                          MinWidth="50"></ProgressRing>
            <TextBlock Text="Ophalen gegevens"
                       Style="{StaticResource BodyTextBlockStyle}"
                       TextWrapping="Wrap"
                       TextAlignment="Center"
                       Padding="5"
                       HorizontalAlignment="Center"
                       Foreground="Black" />
        </StackPanel>
    </StackPanel>
</SettingsFlyout>
